<%--
  Created by IntelliJ IDEA.
  User: k_way
  Date: 2016/11/6
  Time: 21:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册成功${successType}
    </title>

</head>
<body>
register
<c:if test="${successType == 'register'}">
    <H1>恭喜你成功注册成为平台会员，请使用注册账户和密码登录</H1>
    <p>系统正为你跳转...<span id="jumpTimer">10</span>秒...或点击<a href="${ctx}/login">这里</a></p>
    <script type="application/javascript">
        $(function () {
            var int = setInterval(countTime, 1000);

            function countTime() {
                var cnt = parseInt($("#jumpTimer").html());

                cnt = cnt - 1;
                $("#jumpTimer").html(cnt);
                if (cnt == 0) {
                    clearInterval(int);
                    window.location="${ctx}/login";
                }
            }
        })
    </script>
</c:if>


</body>
</html>
